package com.tiny.persistence.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Data;

/**
 * 清分机使用交流区
 * 回复帖子
* @ClassName:  
* @Description: TODO 
* @author:  
* @date: 2014年3月24日
*
 */
@Entity
@Table(name="forum_sorter_reply")
@Data
public class ForumSorterReply {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private int id;
    
    //回复内容
    @Column(name="content")
    private String content;
    
    
    //回复的贴的ID
    @Column(name="post_id")
    private Integer postId; 
    
    //发帖人
    @ManyToOne
    @JoinColumn(name = "wx_user_id")
    private WxUser wxUser;
    
    //回复人姓名
    @Column(name="auth_user_name")
    private String authUserName;
    
    //回复人手机号码
    @Column(name="mobile_phone")
    private String mobilePhone;
    
    //回复时间
    @Column(name="post_date")
    private Date postDate;
    
    
}
